<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/myTag.tld" prefix="page"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<script type="text/javascript" src="login/scripts/jquery-1.3.2.min.js">
</script>
		<script type="text/javascript" src="login/scripts/common.js">
</script>
		<script type="text/javascript" src="login/scripts/WebCalendar.js">
</script>
		<link rel="stylesheet" type="text/css" href="login/css/style.css" />
		<link rel="stylesheet" type="text/css" href="login/css/theme1.css" />
		<style type="text/css">
#search_bar td {
	border: none;
}

#box td {
	height: 28px;
}

#search_bar {
	width: 500px;
}
</style>
	</head>
	<body>
		<div id="wrapper" style="margin-top: 10px;">
			<div id="content">
				<div id="box">
					<div>
						<h3>
							当前位置&nbsp;:&nbsp;灾情数据管理&nbsp;>>&nbsp;历史上报文件&nbsp;>>&nbsp;上报文件列表
						</h3>
					</div>
					<div id="search_bar">
						<form action="disasterAction!uploadHistory.action" method="post">
							<table border="0" cellspacing="3" cellpadding="0">
								<tr>
									<td>
										上报时间从:
									</td>
									<td>
										<input name="startTime"
											onclick="SelectDate(this,'yyyy-MM-dd hh:00:00')"
											value="${startTime}" readonly="readonly" />
									</td>
									<td>
										到:
									</td>
									<td>
										<input name="endTime"
											onclick="SelectDate(this,'yyyy-MM-dd hh:00:00')"
											value="${endTime}" readonly="readonly" />
									</td>
									<td>
										<input type="submit" value="查询" />
									</td>
								</tr>
							</table>
						</form>
					</div>
					<table border="0" cellpadding="3" cellspacing="0"
						style="width: 910px;">
						<thead>
							<tr>
								<th>
									编号
								</th>
								<th>
									文件名称
								</th>
								<th>
									创建时间
								</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${fileList}" var="file" varStatus="i">
								<tr>
									<td class="a-center" width="100">
										${i.index+1}
									</td>
									<td class="a-center">
										<a href="<%=basePath %>/login/flt/xmlTemplete/${file.name}" target="_blank">${file.name}</a>
									</td>
									<td class="a-center" width="200">
										${fn:substring(file.ctime, 0, 16)}    
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					<div id="pager" class="pageDiv">
						<%--				<page:pageDiv url="disasterAction!reportAll.action" pageBean="${pageBean}"></page:pageDiv>--%>
					</div>
				</div>
				<br />
			</div>
		</div>
	</body>
</html>